package com.tecode.day01.homeword;

public class TestRectangle {

	
	public static void main(String[] args) {
		Rectangle r1 = new Rectangle(); //实例化一个长方形对象r1
		
		//给长方形对象的长和宽赋值
		r1.width = 10;
		r1.hight = 20;
		
		int per = r1.getPerimeter();
		
		
		int area = r1.getArea();
		
		
		System.out.println("per= " + per +";area = " + area);
		
	}
}
